<%-- 
    Document   : top
    Created on : 07-nov-2008, 22:31:10
    Author     : org.@le

--%>

<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<style type="text/css">
    <!--
    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        background-image: url(../images/cp.gif);
    }
    
</style>
<html>
    <head>
        <c:if test="${sessionBean.ejbSession.owner==null}" >
            <jsp:forward page="../login.jsp" />
        </c:if>
        <c:if test="${!sessionBean.ejbSession.owner.adminUser}" >
            <jsp:forward page="../user/homeUser.jsp" />
        </c:if>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <f:view>
            <h:form>
                <div align="center" style=" background-color:white; width:200px; height:200px;"> 
                    <img vspace="7px" src="../images/logo2.png"/> 
                </div>
                <div align="right" style=" position:absolute; right:10px; top:8px; width:200px; height:200px; "> 
                <h:commandLink title="eez2find" target="_top" action="#{adminBean.backWelcome}">
                    <img src="../images/home.png" alt="Go to welcome page" width="32" height="32" border="0" />
                </h:commandLink>
                <h:commandLink title="control panel" target="admin" action="#{adminBean.backControlPanel}">
                    <img src="../images/windows.png" alt="Go to control panel" width="32" height="32" border="0" />
                </h:commandLink>
                <h:commandLink title="my account" target="_top" action="#{adminBean.backHomeUser}">
                    <img src="../images/user.png" alt="Go to home user page" width="32" height="32" border="0" />
                </h:commandLink>
                <%--<a href="../welcome.jsp" target="_top" title="eez2find">
                    <img src="../images/home.png" alt="Go to last page" width="32" height="32" border="0" />
                </a>
                <a href="../admin/admin.jsp" title="Control panel" target="admin" >
                    <img src="../images/windows.png" alt="Go to last page" width="32" height="32" border="0"  />
                </a>
                <a href="../user/homeUser.jsp" target="_top" title="My account">
                    <img src="../images/user.png" alt="Go to last page" width="32" height="32" border="0" />
                </a>
                --%>
                <h:commandLink action="#{loginBean.logoutCP}" target="_top" title="Logout">
                    <img src="../images/turnoff.png" alt="Logout" width="32" height="32" border="0" />
                </h:commandLink>
            </h:form>
        </f:view>
    </body>
</html>
